package com.jiguang.property.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 投诉建议表
 * </p>
 *
 * @author testjava
 * @since 2025-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ComplaintInfo对象", description="投诉建议表")
public class ComplaintInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "投诉类型(0:公共设施 1:环境卫生 2:噪音扰民 3:安全问题 4:服务质量 5:其他)")
    private Integer complaintType;

    @ApiModelProperty(value = "投诉标题")
    private String title;

    @ApiModelProperty(value = "投诉内容")
    private String content;

    @ApiModelProperty(value = "投诉人ID")
    private String reporterId;

    @ApiModelProperty(value = "关联房屋ID")
    private String hostelId;

    @ApiModelProperty(value = "关联设施ID")
    private String facilityId;

    @ApiModelProperty(value = "投诉图片")
    private String images;

    @ApiModelProperty(value = "联系方式")
    private String contactWay;

    @ApiModelProperty(value = "状态(0:待处理 1:处理中 2:已处理 3:已关闭)")
    private Integer status;

    @ApiModelProperty(value = "处理结果")
    private String processResult;

    @ApiModelProperty(value = "处理人ID")
    private String processUserId;

    @ApiModelProperty(value = "处理时间")
    private Date processTime;

    @ApiModelProperty(value = "满意度(1-5星)")
    private Integer satisfaction;

    @ApiModelProperty(value = "投诉反馈")
    private String feedback;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer isDelete = 0;

}
